home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Tools - Objects / MacApp / MacApp 3.0a2 / CPlusIncludes / Types.h < prev    next >
Text File  |  1991-05-01  |  2KB  |  96 lines

  1. /************************************************************
  2.  
  3. Created: Wednesday, January 23, 1991 at 11:57 AM
  4.     Types.h
  5.     C Interface to the Macintosh Libraries
  6.  
  7.  
  8.         Copyright Apple Computer, Inc.    1985-1990
  9.         All rights reserved.
  10.  
  11. ************************************************************/
  12.  
  13.  
  14. #ifndef __TYPES__
  15. #define __TYPES__
  16.  
  17. #ifndef __STRING__
  18. #include <String.h>
  19. #endif
  20.  
  21. #ifndef SystemSevenOrLater
  22. #define SystemSevenOrLater 0
  23. #endif
  24.  
  25. #ifndef SystemSixOrLater
  26. #define SystemSixOrLater SystemSevenOrLater
  27. #endif
  28. #ifndef NULL
  29. #define NULL 0
  30. #endif
  31. #define nil 0
  32.  
  33. #define noErr 0         /*All is well*/
  34.  
  35. typedef unsigned char Byte;
  36. typedef char SignedByte;
  37. typedef char *Ptr;
  38. typedef Ptr *Handle;    /*  pointer to a master pointer */
  39. typedef long Fixed;     /* fixed point arithmatic type */
  40. typedef Fixed *FixedPtr;
  41. typedef long Fract;
  42. typedef Fract *FractPtr;
  43.  
  44. enum {false,true};
  45. typedef unsigned char Boolean;
  46.  
  47. typedef long (*ProcPtr)();
  48. typedef ProcPtr *ProcHandle;
  49.  
  50. typedef unsigned char Str27[28],Str15[16],**StrHandle;
  51.  
  52. typedef short OSErr;    /* error code */
  53. typedef unsigned long OSType;
  54. typedef OSType *OSTypePtr;
  55. typedef unsigned long ResType;
  56. typedef ResType *ResTypePtr;
  57. typedef unsigned char Style;
  58. typedef short ScriptCode;
  59. typedef short LangCode;
  60.  
  61. // Include the Pascal string classes String, Str255, Str63, Str32 and Str31.
  62.  
  63. #ifndef __PASCALSTRING__
  64. #include <PascalString.h>
  65. #else
  66. // Forward declaration for all the string classes.  Needed for compiling PascalStrings.cp
  67. struct String;
  68. struct Str255;
  69. struct Str63;
  70. struct Str32;
  71. struct Str31;
  72. #endif
  73.  
  74. #ifdef __cplusplus
  75. extern "C"
  76. {
  77. #endif
  78.  
  79.     pascal void Debugger(void) = 0xA9FF;
  80.     //pascal void DebugStr(const String& aStr)
  81.     pascal void DebugStr(const Str255& aStr) = 0xABFF;
  82.     void debugstr(char* aStr);
  83.     pascal void SysBreak(void) = {
  84.                                   0x303C, 0xFE16, 0xA9C9};
  85.     pascal void SysBreakStr(const String& debugStr) = {
  86.                                                        0x303C, 0xFE15, 0xA9C9};
  87.     pascal void SysBreakFunc(const String& debugFunc) = {
  88.                                                          0x303C, 0xFE14, 0xA9C9};
  89. #ifdef __cplusplus
  90. }
  91. #endif
  92.  
  93. #endif
  94.  
  95.  
  96.